package com.example.tallybook.frag_record;


import com.example.tallybook.R;
import com.example.tallybook.db.DBManager;
import com.example.tallybook.db.TypeBean;

import java.util.List;

public class OutcomeFragment extends BaseRecordFragment {
   //重写
    @Override
    public void loadDateToGV() {
        super.loadDateToGV();
        //获取数据库当中的数据
        List<TypeBean> outlist= DBManager.getTypeList(0);
        typeList.addAll(outlist);
        adapter.notifyDataSetChanged();
        typeTv.setText("其他");
        typeIv.setImageResource(R.mipmap.ic_qita_fs);
    }
    @Override
    public void saveAccountToDB() {
accountBean.setKind(0);
DBManager.insertItemToAccounttb(accountBean);
    }
}
